<template>
  <div>
      
      <!-- 通过id向子组件传值 -->
      <comment :id="id"></comment>

  </div>
</template>
<script>
import comment from '../subComponent/comment.vue';    

export default {
  data() {
    return {
      id: this.$route.params.id
    }
  },
  components: {
    comment
  }
}

</script>
<style lang="scss" scoped>

</style>
